﻿#ifndef _REC_READ_H_
#define _REC_READ_H_

#include "rec_read_base.h"

using namespace std;

class CRecordReader:public CRecReadBase
{
public:
	CRecordReader(int clientID = 0,int channel = -1);
	~CRecordReader();
	virtual	int Open(const char * dev, uint32_t fileIndex,int64_t startTime = 0, int64_t endTime = 0,bool bClearBuf = false);
	virtual int ReadFIFO2Forward();
	virtual int ReadFIFOForward() ;	
	virtual int ReadFIFOReback() ;
	virtual int ReadFIFONormal();
	virtual int ReadFrame(uchar_t* frameBuf, uint32_t bufLen); //混合音频数据 1视频之后跟随着1音频
	bool    IsLastFrame();
protected:

};
#endif //_REC_READ_H_
